#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
    int i, sun = 0, N, a;
    float average;
    scanf("%d", &N);
    if (N == 0)
    {
        printf("average = 0.0\n");
        printf("count = 0");
    }
    int count = 0;
    if (N > 0)
    {
        for (i = 0; i < N; i++)
        {
            scanf("%d", &a);
            if (a >= 60)
                count++;
            sun += a;
        }
        average = sun * 1.0 / N;
        printf("average = %.1f\n", average);
        printf("count = %d", count);
    }
    return 0;
}